#ifndef CRESOURCEBUNDLE_H_
#define CRESOURCEBUNDLE_H_

#include <map>
#include <fstream>
#include "../cstringutils.h"
#include "../../exception/cfilenotexistexception.h"
#include "../../exception/citemnotexistexception.h"

using namespace std;

/**
 * CResourceBundle - class reading messages for logger from file
 * @author Marek Rost
 * @date 24.03.2008
 */
class CResourceBundle : public CObject {
public:
  CResourceBundle() {}
  CResourceBundle(string path);
  ~CResourceBundle();
  string getMessage(string key);
  void freeMap();
  void loadMap(string path);
  static string getClassName() {
    return "CResourceBundle";
  }
private:
  map<string, string> messages;
};

#endif
